package com.yingxue.lesson.vo.resp;

import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * @author chahua
 * @date 2022/4/10 22:13
 **/
@Data
public class PermissionRespNodeVO {

    @ApiModelProperty(value = "主键id")
    private String id;

    @ApiModelProperty(value = "跳转地址")
    private String url;

    @ApiModelProperty(value = "菜单权限名称")
    private String title;

    @JsonInclude(value = JsonInclude.Include.NON_EMPTY)
    @ApiModelProperty(value = "子集集合")
    private List<PermissionRespNodeVO> children;

    @ApiModelProperty(value = "默认展开")
    private boolean spread=true;

    @ApiModelProperty(value = "节点是否选中")
    private boolean checked;

}